---@class Utils
Utils = ClientFight.CreateClass("Utils")
local this = Utils
function this.toRatio(ratio)
    if ratio ==  nil then
        return 0;
        
    end
    return ratio/10000.0
end
function this.toRatioF(ratio)
    if ratio ==  nil then
        return 0;

    end
    return ratio/10000.0
end
function this.fromRatio(ratio)
    if ratio ==  nil then
        return 0;

    end
    return math.floor(ratio * 10000);
end
function this.calcRatio(value,ratio)
    if ratio ==  nil then
        return 0;

    end
    return math.floor(this.toRatio(ratio) * value)
end